<?php

      mysql_connect("localhost","localhost","hostlocal");

      mysql_select_db("vircast");
//echo "here1 <br>";

      $mname = $_REQUEST['name'];
      $msex = $_REQUEST['sex'];
      $myear = $_REQUEST['year'];
//echo "here2 <br>";

	$fh = fopen('debug','a');
	fwrite($fh,"foo");
	fwrite($fh,$mname);
	fwrite($fh,$msex);
	fwrite($fh,$myear);
	
      mysql_query("INSERT INTO people (name,sex,birthyear) values ('".$mname."','".$sex."','".$myear."')");
//echo "here3 <br>";

    mysql_close();
?>

